package cn.xtcode.infrastructure.dao;

import cn.xtcode.infrastructure.dao.po.NotifyTask;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @Author xt-code
 * @Description:
 * @Create 2025/5/11 18:48
 */
@Mapper
public interface NotifyTaskMapper {
    void insert(NotifyTask notifyTask);

    List<NotifyTask> queryUnExecutedNotifyTaskList();

    int updateNotifyTaskStatusSuccess(String teamId);

    int updateNotifyTaskStatusError(String teamId);

    int updateNotifyTaskStatusRetry(String teamId);

    NotifyTask queryUnExecutedNotifyTaskByTeamId(String teamId);
}